import { Component, OnInit } from '@angular/core';

import { ChatService } from '../../services/chat.service';
import { UserInfo } from 'src/app/classes/user-info';

@Component({
  selector: 'app-profile',
  templateUrl: './profile.component.html',
  styleUrls: ['./profile.component.less']
})
export class ProfileComponent implements OnInit {
  user: UserInfo;

  constructor(private chatService: ChatService) {
   }

  ngOnInit() {
    this.user = this.chatService.user;
  }

}
